package com.jj.service;


import com.jj.entity.role;
import com.jj.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class Roleserviceimpl implements Roleservice {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<role> selectRoleAll() {
        return  roleMapper.selectRoleAll();
    }

    @Override
    public int insertadd(role tj) {
        int insertadd = roleMapper.insertadd(tj);
        return insertadd;
    }

    @Override
    public int deletesc(int role_id) {
        return roleMapper.deletesc(role_id);
    }

    @Override
    public int updatexg(role xg) {
        return roleMapper.updatexg(xg);
    }
}
